# coding=utf8

def init_app(app, **kwargs):
    # 状态不需要轮询，执行命令后直接返回状态
    # with app.app_context():
        # from app.extensions import log
        # from app.modules.common.scheduler import SWITCH_LIST
        # from app.modules.zones.models import ZoneInfo
        # for _zone in ZoneInfo.query.filter_by(current_status = 'DOING').all():
        #     log.info(
        #         '========== get zone is doing switch .env_name=%s,zone_code=%s' % (_zone.env_name, _zone.zone_code))
        #     SWITCH_LIST.append('%s_%s' % (_zone.env_name, _zone.zone_code))
    pass
